let mySql = require('mysql');
module.exports = {
    db(sql,data,fn){
        let dbSql = mySql.createConnection({
            // host:'172.17.26.233',
            host:'localhost',
            port:3306,
            user:"root",
            password:'123',
            database:'onlineappointment'
        });
        
        dbSql.connect()
        dbSql.query(sql,data,fn)
        dbSql.end()
    }

};